// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'EquipmentPrimaryKey',
        footer: "Foots",
        cnName: '设备台账',
        name: 'EquipmentLedger',
        url: "/EquipmentLedger/",
        sortName: "EquipmentPrimaryKey"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"EquipmentName":"","EquipmentCode":"","EquipmentDescription":"","Supplier":"","Status":"","CreationTime":""};
    const editFormOptions = [[{"title":"设备名称","required":true,"field":"EquipmentName","type":"text"}],
                              [{"title":"设备编码","required":true,"field":"EquipmentCode","type":"text","disabled":true}],
                              [{"title":"设备描述","field":"EquipmentDescription","type":"textarea"}],
                              [{"title":"供应商","field":"Supplier","type":"text"}],
                              [{"dataKey":"设备状态","data":[],"title":"状态","field":"Status","type":"radio"}],
                              [{"title":"创建时间","required":true,"field":"CreationTime","type":"date"}]];
    const searchFormFields = {"EquipmentName":""};
    const searchFormOptions = [[{"title":"设备名称","field":"EquipmentName","type":"like"}]];
    const columns = [{field:'EquipmentPrimaryKey',title:'设备主键',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'EquipmentName',title:'设备名称',type:'string',width:120,require:true,align:'left'},
                       {field:'EquipmentCode',title:'设备编码',type:'string',width:120,require:true,align:'left'},
                       {field:'EquipmentDescription',title:'设备描述',type:'string',width:120,align:'left'},
                       {field:'Supplier',title:'供应商',type:'string',width:120,align:'left'},
                       {field:'Status',title:'状态',type:'int',bind:{ key:'设备状态',data:[]},width:120,align:'left'},
                       {field:'CreationTime',title:'创建时间',type:'datetime',width:120,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}